<?xml version='1.0' encoding='ISO-8859-1' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:body>
        <ui:composition template="/templates/template.xhtml">
            <ui:define name="content">
                <b><h3><h:outputLabel value="Highscore" rendered="#{user.findRole()}"/></h3></b>
                <b><h3><h:outputLabel value="Denne siden har du ikke tilgang til!" rendered="#{not user.findRole()}"/></h3></b>
                <br/>
                <h:form>
                    <h:commandLink  action="../protected/userAdministration.xhtml" rendered="#{user.findRole()}">Tilbake</h:commandLink>
                </h:form>

                <br/><br/><br/>
                <h:outputLabel value="Pluss:" style="font-size: 20px;" rendered="#{user.findRole()}"/>
                <br/><br/>
                <h:form>
                    <h:dataTable value="#{result.tableScorePlus}" var="name" styleClass="names"
                                 headerClass="namesHeader" footerClass="namessFooter"
                                 rowClasses="last,first" rendered="#{user.findRole()}">
                        <h:column>
                            <f:facet name="header">Brukernavn</f:facet>
                            <h:outputText value="#{name.username}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">Poengsum</f:facet>
                            <h:outputText value="#{name.highScore}"/>
                        </h:column>
                    </h:dataTable>
                    <br/><br/>
                    <h:outputLabel value="Minus:" style="font-size: 20px;" rendered="#{user.findRole()}"/>
                    <br/><br/>

                    <h:dataTable value="#{result.tableScoreMinus}" var="name" styleClass="names"
                                 headerClass="namesHeader" footerClass="namessFooter"
                                 rowClasses="last,first" rendered="#{user.findRole()}">
                        <h:column>
                            <f:facet name="header">Brukernavn</f:facet>
                            <h:outputText value="#{name.username}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">Poengsum</f:facet>
                            <h:outputText value="#{name.highScore}"/>
                        </h:column>
                    </h:dataTable>
                    <br/><br/>
                    <h:outputLabel value="Gange:" style="font-size: 20px;" rendered="#{user.findRole()}"/>
                    <br/><br/>

                    <h:dataTable value="#{result.tableScoreMultiply}" var="name" styleClass="names"
                                 headerClass="namesHeader" footerClass="namessFooter"
                                 rowClasses="last,first" rendered="#{user.findRole()}">
                        <h:column>
                            <f:facet name="header">Brukernavn</f:facet>
                            <h:outputText value="#{name.username}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">Poengsum</f:facet>
                            <h:outputText value="#{name.highScore}"/>
                        </h:column>
                    </h:dataTable>
                    <br/><br/>
                    <h:outputLabel value="Dele:" style="font-size: 20px;" rendered="#{user.findRole()}"/>
                    <br/><br/>

                    <h:dataTable value="#{result.tableScoreDivide}" var="name" styleClass="names"
                                 headerClass="namesHeader" footerClass="namessFooter"
                                 rowClasses="last,first" rendered="#{user.findRole()}">
                        <h:column>
                            <f:facet name="header">Brukernavn</f:facet>
                            <h:outputText value="#{name.username}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">Poengsum</f:facet>
                            <h:outputText value="#{name.highScore}"/>
                        </h:column>
                    </h:dataTable>
                    <br/>
                </h:form>
            </ui:define>
        </ui:composition>
    </h:body>
</html>